package com.lsh.service;

import java.util.Date;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.dao.support.DaoSupport;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.lsh.dao.BasicDao;
import com.lsh.model.TbBack;

@Service("tbBackService")
public class TbBackService {

	@Autowired
	BasicDao basicDao;
	
	@Transactional
	public void test() {
//		TbBack tbBack  = basicDao.selectOne("TbBackgetById",122);
		TbBack tbBack =new TbBack();
//		
//		Map map = new HashMap();
//		List list  = basicDao.selectList("TbBackgetAll", "id");
//		System.out.println(list.size());
		
//		tbBack.setEbackmoney(null);
		tbBack.setEbackmoney("money5");
		tbBack.setEfiledate(new Date());
		basicDao.insert("TbBackinsert", tbBack);
//		tbBack.setEbackmoney("money5");
//		basicDao.insert("TbBackinsert", tbBack);
//		tbBack.setId("133");
//		basicDao.delete("TbBackdelete", tbBack);
//		throw new Exception();
//		TbBack tbBack2 = null;
//		System.out.println(tbBack2.getEbackdate());
	}
	
	public void getBack(){
		
	}
}
